﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yqd.Enm;

namespace Yqd.Models
{
    public class Yqd_JobNode
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int NodeID { get; set; }

        [DisplayName("任务编号")]
        public long TaskID { get; set; }

        [DisplayName("事项编号（钉办督导编号、申请协调编号")]
        public int ItemID { get; set; }

        [DisplayName("事项类型（钉办督到、申请协调）")]
        public 事项类型 ItemType { get; set; }

        [DisplayName("工作方案编号")]
        public int SchemeID { get; set; }

        [DisplayName("工作节点要求")]
        [StringLength(500)]
        public string Require { get; set; }

        [DisplayName("计划完成时间")]
        public DateTime? PlanCompleteTime { get; set; }

        [DisplayName("工作节点完成情况")]
        public 工作节点完成情况 Status { get; set; }

        [DisplayName("操作完成时间")]
        public DateTime? CompleteTime { get; set; }

        [DisplayName("完成数")]
        public int CompleteCount { get; set; }

        [DisplayName("当前完成数")]
        public int CompletingCount { get; set; }

        [DisplayName("创建时间")]
        public DateTime Instime { get; set; }

        [DisplayName("创建者")]
        [StringLength(50)]
        public string EmployeeCode { get; set; }

        [DisplayName("部门编码")]
        [StringLength(50)]
        public string UnitCode { get; set; }
    }
}
